package com.xja.feignclient;

import com.xja.entity.Orderinfo;
import com.xja.entity.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 周广瑞
 * @date 2022/4/26 14:08
 */
@Component
@FeignClient(value = "orderService")
public interface OrderService {
    //根据userid查询对应的订单
    @RequestMapping("/order/finduid")
    public PageResult<List<Orderinfo>> findUid(@RequestParam("uid") Integer uid);
}
